package com.starblink.android.basic.util

import android.content.Context
import android.content.Intent
import androidx.fragment.app.FragmentActivity
import com.google.android.gms.common.ConnectionResult
import com.google.android.gms.common.GoogleApiAvailability

/**
 * Google Play Service实用工具
 */
object GooglePlayServicesUtils {

    /**
     * true表示手机的GooglePlay服务可用
     */
    fun isGooglePlayServicesAvailable(context: Context): Boolean {
        return GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) == 0
    }
}